package com.slimerevenge.screen;

import com.badlogic.gdx.Gdx;
import com.badlogic.gdx.Screen;
import com.badlogic.gdx.graphics.GL10;
import com.slimerevenge.controller.WorldController;
import com.slimerevenge.model.Level;
import com.slimerevenge.view.WorldRenderer;

public class GameScreen implements Screen {

	private Level level;
	private WorldRenderer renderer;
	//private WorldController worldController;
	@Override
	public void resize(int width, int height) {
		renderer.setSize(width, height);
	}

	@Override
	public void show() {
		level = new Level();
		renderer = new WorldRenderer(level, true);
		//worldController = new WorldController(level);
		
	}

	@Override
	public void render(float delta) {	
		Gdx.gl.glClearColor(0.1f, 0.1f, 0.1f, 1);
		Gdx.gl.glClear(GL10.GL_COLOR_BUFFER_BIT);
		//worldController.updateInput();
		renderer.render();
	}

	@Override
	public void hide() {
		// TODO Auto-generated method stub

	}

	@Override
	public void pause() {
		// TODO Auto-generated method stub

	}

	@Override
	public void resume() {
		// TODO Auto-generated method stub

	}

	@Override
	public void dispose() {
		// TODO Auto-generated method stub

	}

}
